-- GENERATED SPELL FOR [Acherus Necromancer] --


function spell0_28889(pUnit, Event) --@Ghoulplosion,n/a--
pUnit:FullCastSpellOnTarget(52672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28889', 648, 1)
end

function Sorts_28889(pUnit, Event)
local choix_sorts_28889 = math.random(0, 0)
if choix_sorts_28889 == 0 then
pUnit:RegisterEvent('spell0_28889', 1, 1)
end
end

function mob28889_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28889', math.random(1500, 3000), 1)
end

function mob28889_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28889_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28889_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28889, 1, 'mob28889_Action')
RegisterUnitEvent(28889, 2, 'mob28889_Leave')
RegisterUnitEvent(28889, 3, 'mob28889_Kill')
RegisterUnitEvent(28889, 4, 'mob28889_Die')
